package com.solidtrust.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.solidtrust.entity.CarCategory;

public interface CarCategoryRepository extends JpaRepository<CarCategory, Long>{

	List<CarCategory> findBySource(String source);
	
	Long countBySource(String source);
	
	Long countBySourceAndLocking(String source, boolean lock);
}
